package com.tokenmaster.aitrade.common.system;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class MnsClient {

	private String accessKeyId = "";
	private String accessKeySecret = "";
	private String endpoint = "";

	public MnsClient() {

		// 从配置文件中读取mns配置信息
		Properties propfile = new Properties();
		try {
			InputStream inputStream = new BufferedInputStream(new FileInputStream("mns.properties"));
			propfile.load(inputStream);

			accessKeyId = propfile.getProperty("AccessKeyId");
			accessKeySecret = propfile.getProperty("AccessKeySecret");
			endpoint = propfile.getProperty("Endpoint");

			inputStream.close();

		} catch (FileNotFoundException e1) {
			e1.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
